Use PEGetNthSortField to return information about one of the sort fields in the specified report. This function returns the name of the field and the direction (ascending or descending) of the sort. The name of the sort field is returned as a string handle. This function is typically used as one of a series of functions (PEGetNSortFields called once; PEGetNthSortField and PEGetHandleString called together as many times as needed to identify the correct sort field; and PESetNthSortField called once when the correct sort field is identified). The series can be used in a Custom
BOOL CRPE_API PEGetNthSortField (
short printJob,
short sortFieldN,
HANDLE FAR *nameHandle,
short FAR *nameLength,
short FAR *direction );
Specifies the print job from which you want to retrieve sort field information. | |
Specifies the0 | |
Specifies a pointer to the handle of the string containing the sort field name. | |
Specifies a pointer to the length of the field name string (in bytes) including the terminating byte. | |
Specifies a pointer to the sort direction. Uses one of the PE_SF_XXX Sort Order Constants. |
Declare Function PEGetNthSortField Lib "crpe32.dll" ( _
ByVal printJob As Integer, ByVal SortNumber As Integer, _
NameHandle As Long, NameLength As Integer, Direction As Integer _
) As Integer
function PEGetNthSortField (
printJob: Word;
sortFieldN: integer;
var nameHandle: HWnd;
var nameLength: Word;
var direction: Word
): Bool stdcall;
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |